frame.setTitle("Producer test");

var button = new javax.swing.JButton("Produce a test message");
button.addActionListener(function(e) { mq.publish("Testing", "p Hecatonchires=Test message from Java"); });
frame.add(button);